package com.gxj.study.shopdemo.adapter;

import android.content.Context;

import com.gxj.study.shopdemo.R;
import com.gxj.study.shopdemo.bean.Category;

import java.util.List;

/**
 * Created by 祥杰 on 2016/8/6.
 */

public class CategoryAdapter extends SimpleAdapter<Category>{
    public CategoryAdapter(Context context, List<Category> datas) {
        super(context, R.layout.template_single_text, datas);
    }

    @Override
    protected void convert(BaseViewHolder viewHolder, Category item) {
        viewHolder.getTextView(R.id.textView).setText(item.getName());
    }
}
